package com.zzyl.controller;

import com.zzyl.base.ResponseResult;
import com.zzyl.entity.NursingLevel;
import com.zzyl.service.NursingLevelService;
import com.zzyl.vo.NursingLevelVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 友人A
 */
@Slf4j
@RestController
@RequestMapping
@Api("护理等级")
public class NursingLevelController extends BaseController {
    @Autowired
    private NursingLevelService nursingLevelService;

    @GetMapping("/nursingLevel/listAll")
    @ApiModelProperty(value = "查询护理等级列表")
    public ResponseResult<List<NursingLevelVo>> findNursingLevelList() {
        List<NursingLevelVo> levelVos = nursingLevelService.fianNursingLecelList();
        return success(levelVos);
    }
}
